package com.rules.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rules.admin.domain.Page;
import com.rules.admin.entity.RulePackage;
import com.rules.admin.vo.RulePackageParams;
import com.rules.admin.vo.UserGroupPermissionInfo;
import com.rules.admin.vo.UserPermissionInfo;

import java.util.List;

public interface RulePackageDao extends BaseMapper<RulePackage> {

    public byte getPriority(Long id);

    List<UserGroupPermissionInfo> selectUserGroupPermissionInfos(Long targetId, Integer targetType, Integer mode, String groupName);

    Page findPackages(RulePackageParams rulePackageParams);

    Page findPackagesNotCount(RulePackageParams rulePackageParams);

    List<UserPermissionInfo> selectUserPermissionInfos(Long targetId, Integer targetType, Integer mode, String userName);
}
